package cn.shujuhai.qtadmin.platform.service;

import java.io.File;
import java.util.List;

import org.jetbrains.annotations.NotNull;

/**
 * @author dch
 */
public interface SendEmailService {

    /**
     * 异步发送邮件
     * 
     * @param from
     *            from
     * @param to
     *            to
     * @param cc
     *            cc
     * @param subject
     *            subject
     * @param text
     *            text
     */
    void asyncSendEmail(String from, String to, String cc, String subject, String text);

    /**
     * 发送邮件带附件
     * 
     * @param from
     *            from
     * @param to
     *            to
     * @param cc
     *            cc
     * @param subject
     *            subject
     * @param text
     *            text
     * @param file
     *            file
     */
    void sendAttachmentMail(String from, @NotNull String to, String cc, String subject, String text, File file);

    /**
     * 发送邮件带附件
     * 
     * @param from
     *            from
     * @param to
     *            to
     * @param cc
     *            cc
     * @param subject
     *            subject
     * @param text
     *            text
     * @param attachments
     *            attachments
     */
    void sendAttachmentMail(String from, @NotNull String to, String cc, String subject, String text,
        List<File> attachments);
}
